<?php
require_once 'rss_simple.php';
require_once 'opml_simple.php';

class MasterParser
{
	public static function xmlToFeed($path)
	{
		//$parser = new RssSimple();
		$parser = new OpmlSimple();
		$feed = $parser->parse($path);
		return $feed;
	}
	
	public static function opmlToFeedsList($path)
	{
		$parser = new OpmlSimple();
		$list = $parser->parse($path);
		return $list;
	}
}